<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站配置</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<style type="text/css">
body{margin:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$('.q').find('ul li').click(function(){
		$index=$('.q').find('ul li').index(this);
		$('#tb').find('div').eq($index).show().siblings().hide();
	});
});

function mark_text(){
	$('#pic_mark').hide();
	$('#text_mark').show();
}
function mark_pic(){
	$('#text_mark').hide();
	$('#pic_mark').show();
}
</script>
</head>

<body>
<div class="div_out">
 <div class="position"><h2>当前位置 > 系统配置</h2></div>
</div><!--导航-->
<form name="maininfo" method="post" class="form">
<div class="q" style="margin-top:20px;">
 <ul>
  <li>附件设置</li>
  <li>会员设置</li>
  <li>图片水印</li>
  <li>验证安全</li>
  <li>其它设置</li>
 </ul>
</div>
<div class="div_out" id="tb">
 <div id="sys1" style="display:block">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
	<tr>
		  <td class="w1">允许上传的图片类型(用|分割):</td><td class="w2"><textarea name="web_upload_image" style="width:95%; height:50px;"><?php echo $_sys['web_upload_image'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">允许上传的文件类型(用|分割):</td><td class="w2"><textarea name="web_upload_file" style="width:95%; height:50px;"><?php echo $_sys['web_upload_file'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">缩略图默认宽度(px):</td><td class="w2"><input type="text" name="thump_width" style="width:30%" value="<?php echo $_sys['thump_width'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">缩略图默认高度(px):</td><td class="w2"><input type="text" name="thump_height" style="width:30%" value="<?php echo $_sys['thump_height'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">允许上传文件的最大值:</td><td class="w2"><input type="text" name="upload_size" style="width:50%" value="<?php echo $_sys['upload_size'];?>"/>Bytes</td><td class="w3"></td>
		</tr>
    </tbody>
 </table>
 </div>
 
  <div id="sys2" style="display:none">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">是否开启会员注册:</td><td class="w2"><input type="radio" value="1" name="web_member[]" style="margin:0 5px;border:0" <?php if ($_sys['web_member'][0]==1){?>checked="checked"<?php }?>/>是<input style="margin:0 5px;border:0" type="radio" value="0" name="web_member[]" <?php if ($_sys['web_member'][0]==0){?>checked="checked"<?php }?>/>否</td><td class="w3"></td>
		</tr>
		<tr style="display:none">
		  <td class="w1">注册审核方式:</td><td class="w2"><input type="radio" value="1" name="is_member[]" style="margin:0 5px;border:0" <?php if ($_sys['is_member'][0]==1){?>checked="checked"<?php }?>/>直接注册<input style="margin:0 5px;border:0" type="radio" value="0" name="is_member[]" <?php if ($_sys['is_member'][0]==0){?>checked="checked"<?php }?>/>审核通过</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">同一邮箱是否可以多次注册:</td><td class="w2"><input type="radio" value="1" name="member_mail[]" style="margin:0 5px;border:0" <?php if ($_sys['member_mail'][0]==1){?>checked="checked"<?php }?>/>是<input style="margin:0 5px;border:0" type="radio" value="0" name="member_mail[]" <?php if ($_sys['member_mail'][0]==0){?>checked="checked"<?php }?>/>否</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">不允许注册的会员名(用|分割):</td><td class="w2"><textarea name="member_no_name" style="width:95%; height:50px;"><?php echo $_sys['member_no_name'];?></textarea></td><td class="w3"></td>
		</tr>
    </tbody>
 </table>
 </div>
 
 <div id="sys3" style="display:none">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">开启水印:</td><td class="w2"><input type="radio" value="1" name="image_is[]" style="margin:0 5px; border:none" <?php if($_sys['image_is'][0]){?>checked="checked"<?php }?>/>是<input style="margin:0 5px; border:none" type="radio" value="0" name="image_is[]" <?php if(!$_sys['image_is'][0]){?>checked="checked"<?php }?>/>否</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">运程下载图片开启水印:</td><td class="w2"><input type="radio" value="1" name="image_url_is[]" style="margin:0 5px; border:none" <?php if($_sys['image_url_is'][0]){?>checked="checked"<?php }?>/>是<input style="margin:0 5px; border:none" type="radio" value="0" name="image_url_is[]" <?php if(!$_sys['image_url_is'][0]){?>checked="checked"<?php }?>/>否</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">水印类型:</td><td class="w2"><input type="radio" value="0" name="image_type[]" style="margin:0 5px; border:none" <?php if(!$_sys['image_type'][0]){?>checked="checked"<?php }?> onclick="mark_text();"/>文字<input style="margin:0 5px; border:none" type="radio" value="1" name="image_type[]" <?php if($_sys['image_type'][0]){?>checked="checked"<?php }?> onclick="mark_pic();"/>图片</td><td class="w3"></td>
		</tr>
		<tbody id="text_mark" style="display:<?php if(!$_sys['image_type'][0]){echo"";}else{echo "none";}?>">
		<tr>
		  <td class="w1"><span title="目前不支持中文,使用中文请使用图片水印" class="help">水印文字(文字水印):</span></td><td class="w2"><input type="text" name="image_text" value="<?php echo $_sys['image_text'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1"><span title="0-255之间的数值,用,分割" class="help">文字颜色(文字水印):</span></td><td class="w2"><input type="text" name="image_text_color" value="<?php echo $_sys['image_text_color'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1">文字大小(文字水印):</td><td class="w2"><input type="text" name="image_text_size" value="<?php echo $_sys['image_text_size'];?>" style="width:50%"/></td><td class="w3">&nbsp;</td>
		</tr>
		</tbody>
		<tbody id="pic_mark" style="display:<?php if($_sys['image_type'][0]){echo"";}else{echo "none";}?>">
		<tr>
		  <td class="w1">水印图片:</td><td class="w2"><img src="<?php echo CMS_SELF.'upload/'.$_sys['pic'];?>" border="0"/></td><td class="w3">&nbsp;</td>
		</tr>
		<tr>
		  <td class="w1">上传水印图片:</td><td class="w2"><input style="width:200px;" name="pic" value="<?php echo $_sys['pic'];?>"  id="pic_path"/><input style="margin-left:5px;" type="button" name="button" value="上传文件" onclick="window.open('upload.php?up_type=pic&get=pic_path&logo=true','文件上传','width=600,height=200');"/></td><td class="w3">&nbsp;</td>
		</tr>
		</tbody>
		<tr>
		  <td class="w1">水印位置</td><td class="w2"><table cellpadding="0" cellspacing="0" width="60%">
		  	<tr>
				<td width="20%"><input type="radio" style="border:0" name="image_position[]" value="1" <?php if($_sys['image_position'][0]==1){?>checked="checked"<?php }?>/>顶部居左</td><td width="20%"><input type="radio" style="border:0" name="image_position[]" value="2" <?php if($_sys['image_position'][0]==2){?>checked="checked"<?php }?>/>顶部居中</td><td width="20%"><input type="radio" style="border:0" name="image_position[]" value="3" <?php if($_sys['image_position'][0]==3){?>checked="checked"<?php }?>/>顶部居右</td>
			</tr>
			<tr>
				<td width="20%"><input type="radio" name="image_position[]" value="4" style="border:0" <?php if($_sys['image_position']==4){?>checked="checked"<?php }?>/>中部居左</td><td width="20%"><input type="radio" name="image_position[]" value="5" style="border:0" <?php if($_sys['image_position'][0]==5){?>checked="checked"<?php }?>/>中部居中</td><td width="20%"><input type="radio" name="image_position[]" value="6" style="border:0" <?php if($_sys['image_position'][0]==6){?>checked="checked"<?php }?>/>中部居右</td>
			</tr>
			<tr>
				<td width="20%"><input type="radio" name="image_position[]" value="7" style="border:0" <?php if($_sys['image_position'][0]==7){?>checked="checked"<?php }?>/>底部居左</td><td width="20%"><input type="radio" name="image_position[]" value="8" style="border:0" <?php if($_sys['image_position'][0]==8){?>checked="checked"<?php }?>/>底部居中</td><td width="20%"><input type="radio" name="image_position[]" value="9" style="border:0" <?php if($_sys['image_position'][0]==9){?>checked="checked"<?php }?>/>底部居右</td>
			</tr>
		  </table></td><td class="w3"></td>
		</tr>
	</tbody>
 </table>
 
 </div>
 
 <div id="sys4" style=" display:none">
 
  <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">开启系统验证码:</td><td class="w2"><input type="checkbox" value="1" name="safe_open[]" style="margin:0 5px; border:none"  
		  <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='1'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />会员注册<input style="margin:0 5px; border:none" type="checkbox" value="2" name="safe_open[]"  
		   <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='2'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />会员登录<input style="margin:0 5px; border:none" type="checkbox" value="3" name="safe_open[]"  
		   <?php if(!empty($_sys['safe_open'])){
		  		foreach($_sys['safe_open'] as $k=>$v){
				if($v=='3'){
		  ?>checked="checked"
		  <?php 
		  }
		  }
		  }?>
		  />管理登录</td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">验证码大小:</td><td class="w2">高<input type="text" value="<?php echo $_sys['safe_height'];?>" name="safe_height" style="width:10%; margin:0 5px; "/>宽<input style="margin:0 5px; width:10%;" type="text" value="<?php echo $_sys['safe_width'];?>" name="safe_width"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">验证码字数:</td><td class="w2"><input type="text" width="20%" value="<?php echo $_sys['safe_num'];?>" name="safe_num"/>个</td><td class="w3"></td>
		</tr>
	</tbody>
 </table>
 
 </div>
 
 <div id="sys5" style="display:none">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1">列表页显示条数:</td><td class="w2"><input name="web_pagesize" value="<?php echo empty($_sys['web_pagesize'])?'20':$_sys['web_pagesize'];?>" style="width:80%;" /></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">内容标题最大长度(10-240之间):</td><td class="w2"><input type="text" name="web_content_title" style="width:30%" value="<?php echo isset($_sys['web_content_title'])&&!empty($_sys['web_content_title'])?$_sys['web_content_title']:'180';?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">内容自动摘要长度(10-240之间):</td><td class="w2"><input type="text" name="web_content_info" style="width:30%" value="<?php echo isset($_sys['web_content_info'])&&!empty($_sys['web_content_info'])?$_sys['web_content_info']:'200';?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">默认点击数:<p style="color:#999999; font-weight:normal">为空或0为1-500间的随机数</p></td><td class="w2"><input type="text" name="is_hits" style="width:30%" value="<?php echo $_sys['is_hits'];?>"/></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">过滤词语（词语会被替换成***）用|分开:</td><td class="w2"><textarea name="fialt_words" style="width:95%; height:50px;"><?php echo $_sys['fialt_words'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1">发布内容时生成html:</td><td class="w2"><input type="radio" name="arc_html[]" style="border:0" <?php if($_sys['arc_html'][0]){?>checked="checked"<?php }?> value="1" />是<input type="radio" name="arc_html[]" <?php if(!$_sys['arc_html'][0]){?>checked="checked"<?php }?> value="0" style="border:0" />否</td><td class="w3"></td>
		</tr>
		
    </tbody>
 </table>
 </div>
 
</div>
<div class="btn" style="margin-top:10px">
<input type="hidden" name="action" value="add_sys"/>
  <input type="submit" value="确定" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 </div>
</form>
</body>
</html>
